<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Colour Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('struct_vect_sharp_1_1_colour.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="struct_vect_sharp_1_1_colour-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Colour Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Represents an RGB colour.   
 <a href="struct_vect_sharp_1_1_colour.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for VectSharp.Colour:</div>
<div class="dyncontent">
<div class="center"><img src="struct_vect_sharp_1_1_colour__inherit__graph.png" border="0" usemap="#a_vect_sharp_8_colour_inherit__map" alt="Inheritance graph"/></div>
<map name="a_vect_sharp_8_colour_inherit__map" id="a_vect_sharp_8_colour_inherit__map">
<area shape="rect" title="Represents an RGB colour." alt="" coords="16,79,141,104"/>
<area shape="rect" title=" " alt="" coords="5,5,152,31"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a114451c549f2636cb93a20aaa0519d8a"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a114451c549f2636cb93a20aaa0519d8a">Equals</a> (object obj)</td></tr>
<tr class="separator:a114451c549f2636cb93a20aaa0519d8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1748b8f2f362494aa2175efa15f886a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#ab1748b8f2f362494aa2175efa15f886a">Equals</a> (<a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> col)</td></tr>
<tr class="separator:ab1748b8f2f362494aa2175efa15f886a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54a2e4dac2e76d24394fe9d40117fae9"><td class="memItemLeft" align="right" valign="top">override int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a54a2e4dac2e76d24394fe9d40117fae9">GetHashCode</a> ()</td></tr>
<tr class="separator:a54a2e4dac2e76d24394fe9d40117fae9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ac682d76a238254e3d750254820a9af"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a2ac682d76a238254e3d750254820a9af">ToCSSString</a> (bool includeAlpha)</td></tr>
<tr class="memdesc:a2ac682d76a238254e3d750254820a9af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> object into a hex string that is constituted by a "#" followed by two-digit hexadecimal representations of the red, green and blue components of the colour (in the range 0x00 - 0xFF). Optionally also includes opacity (alpha channel) data.   <a href="struct_vect_sharp_1_1_colour.html#a2ac682d76a238254e3d750254820a9af">More...</a><br /></td></tr>
<tr class="separator:a2ac682d76a238254e3d750254820a9af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afccab5755d0a369205b1af623b088495"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#afccab5755d0a369205b1af623b088495">WithAlpha</a> (double alpha)</td></tr>
<tr class="memdesc:afccab5755d0a369205b1af623b088495"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> with the same RGB components as the current <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>, but with the specified <em>alpha</em> .   <a href="struct_vect_sharp_1_1_colour.html#afccab5755d0a369205b1af623b088495">More...</a><br /></td></tr>
<tr class="separator:afccab5755d0a369205b1af623b088495"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2de8feb0735ee2b49cb79604f3c1e98"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#ad2de8feb0735ee2b49cb79604f3c1e98">WithAlpha</a> (byte alpha)</td></tr>
<tr class="memdesc:ad2de8feb0735ee2b49cb79604f3c1e98"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> with the same RGB components as the current <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>, but with the specified <em>alpha</em> .   <a href="struct_vect_sharp_1_1_colour.html#ad2de8feb0735ee2b49cb79604f3c1e98">More...</a><br /></td></tr>
<tr class="separator:ad2de8feb0735ee2b49cb79604f3c1e98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a023d9996aac7d87cf6d88ad7ab6ffdba"><td class="memItemLeft" align="right" valign="top">double double double Z&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a023d9996aac7d87cf6d88ad7ab6ffdba">ToXYZ</a> ()</td></tr>
<tr class="separator:a023d9996aac7d87cf6d88ad7ab6ffdba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4764d6a4992651f7e718ba61eda93d01"><td class="memItemLeft" align="right" valign="top">double double double b&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a4764d6a4992651f7e718ba61eda93d01">ToLab</a> ()</td></tr>
<tr class="separator:a4764d6a4992651f7e718ba61eda93d01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee3a20f7e437b6e8e5acc65f8cc04dd8"><td class="memItemLeft" align="right" valign="top">double double double <a class="el" href="struct_vect_sharp_1_1_colour.html#a082c62de97d68e4e9c39c174b1a8b115">L</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#aee3a20f7e437b6e8e5acc65f8cc04dd8">ToHSL</a> ()</td></tr>
<tr class="separator:aee3a20f7e437b6e8e5acc65f8cc04dd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a80787f39829f01b38291bb429214d6ae"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a80787f39829f01b38291bb429214d6ae">FromRgb</a> (double r, double g, double b)</td></tr>
<tr class="memdesc:a80787f39829f01b38291bb429214d6ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGB (red, green and blue) values.   <a href="struct_vect_sharp_1_1_colour.html#a80787f39829f01b38291bb429214d6ae">More...</a><br /></td></tr>
<tr class="separator:a80787f39829f01b38291bb429214d6ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a611fe30e3066c79106d7b7aeaec38f57"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a611fe30e3066c79106d7b7aeaec38f57">FromRgb</a> (byte r, byte g, byte b)</td></tr>
<tr class="memdesc:a611fe30e3066c79106d7b7aeaec38f57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGB (red, green and blue) values.   <a href="struct_vect_sharp_1_1_colour.html#a611fe30e3066c79106d7b7aeaec38f57">More...</a><br /></td></tr>
<tr class="separator:a611fe30e3066c79106d7b7aeaec38f57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a976b67231d8f9fa1e8636d27f7d840c3"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a976b67231d8f9fa1e8636d27f7d840c3">FromRgb</a> (int r, int g, int b)</td></tr>
<tr class="memdesc:a976b67231d8f9fa1e8636d27f7d840c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGB (red, green and blue) values.   <a href="struct_vect_sharp_1_1_colour.html#a976b67231d8f9fa1e8636d27f7d840c3">More...</a><br /></td></tr>
<tr class="separator:a976b67231d8f9fa1e8636d27f7d840c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8dc3a457be395b0350db3508424a324"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#ae8dc3a457be395b0350db3508424a324">FromRgba</a> (double r, double g, double b, double a)</td></tr>
<tr class="memdesc:ae8dc3a457be395b0350db3508424a324"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGBA (red, green, blue and alpha) values.   <a href="struct_vect_sharp_1_1_colour.html#ae8dc3a457be395b0350db3508424a324">More...</a><br /></td></tr>
<tr class="separator:ae8dc3a457be395b0350db3508424a324"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbc0931103077c92cd2e08d3fbe4806b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#abbc0931103077c92cd2e08d3fbe4806b">FromRgba</a> (byte r, byte g, byte b, byte a)</td></tr>
<tr class="memdesc:abbc0931103077c92cd2e08d3fbe4806b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGBA (red, green, blue and alpha) values.   <a href="struct_vect_sharp_1_1_colour.html#abbc0931103077c92cd2e08d3fbe4806b">More...</a><br /></td></tr>
<tr class="separator:abbc0931103077c92cd2e08d3fbe4806b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d890c9efeae548a18e00ae396f7789c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a3d890c9efeae548a18e00ae396f7789c">FromRgba</a> (byte r, byte g, byte b, double a)</td></tr>
<tr class="memdesc:a3d890c9efeae548a18e00ae396f7789c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGBA (red, green, blue and alpha) values.   <a href="struct_vect_sharp_1_1_colour.html#a3d890c9efeae548a18e00ae396f7789c">More...</a><br /></td></tr>
<tr class="separator:a3d890c9efeae548a18e00ae396f7789c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a781c5f8f24851eb327b75b0c17a2a959"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a781c5f8f24851eb327b75b0c17a2a959">FromRgba</a> (int r, int g, int b, int a)</td></tr>
<tr class="memdesc:a781c5f8f24851eb327b75b0c17a2a959"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGBA (red, green, blue and alpha) values.   <a href="struct_vect_sharp_1_1_colour.html#a781c5f8f24851eb327b75b0c17a2a959">More...</a><br /></td></tr>
<tr class="separator:a781c5f8f24851eb327b75b0c17a2a959"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ae01d2810757c45611de9c02d11d359"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a5ae01d2810757c45611de9c02d11d359">FromRgba</a> (int r, int g, int b, double a)</td></tr>
<tr class="memdesc:a5ae01d2810757c45611de9c02d11d359"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGBA (red, green, blue and alpha) values.   <a href="struct_vect_sharp_1_1_colour.html#a5ae01d2810757c45611de9c02d11d359">More...</a><br /></td></tr>
<tr class="separator:a5ae01d2810757c45611de9c02d11d359"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2588faa7d3c92467f715db1fff82e214"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a2588faa7d3c92467f715db1fff82e214">FromRgba</a> ((int r, int g, int b, double a) colour)</td></tr>
<tr class="memdesc:a2588faa7d3c92467f715db1fff82e214"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new colour from RGBA (red, green, blue and alpha) values.   <a href="struct_vect_sharp_1_1_colour.html#a2588faa7d3c92467f715db1fff82e214">More...</a><br /></td></tr>
<tr class="separator:a2588faa7d3c92467f715db1fff82e214"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7f6945a159dbb984e9fb1148c6db532"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#ab7f6945a159dbb984e9fb1148c6db532">operator==</a> (<a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> col1, <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> col2)</td></tr>
<tr class="separator:ab7f6945a159dbb984e9fb1148c6db532"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e7aca2b6d5ca6a18ec9090b2ea54e63"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a0e7aca2b6d5ca6a18ec9090b2ea54e63">operator!=</a> (<a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> col1, <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> col2)</td></tr>
<tr class="separator:a0e7aca2b6d5ca6a18ec9090b2ea54e63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c316cac2ed75e622e2f86c608cc8abe"><td class="memItemLeft" align="right" valign="top">static ? <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a4c316cac2ed75e622e2f86c608cc8abe">FromCSSString</a> (string cssString)</td></tr>
<tr class="memdesc:a4c316cac2ed75e622e2f86c608cc8abe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a CSS colour string into a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> object.   <a href="struct_vect_sharp_1_1_colour.html#a4c316cac2ed75e622e2f86c608cc8abe">More...</a><br /></td></tr>
<tr class="separator:a4c316cac2ed75e622e2f86c608cc8abe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa13c5ba1a5131ecaf5cae5c4504b728f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#aa13c5ba1a5131ecaf5cae5c4504b728f">WithAlpha</a> (<a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> original, double alpha)</td></tr>
<tr class="memdesc:aa13c5ba1a5131ecaf5cae5c4504b728f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> with the same RGB components as the <em>original</em>  <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>, but with the specified <em>alpha</em> .   <a href="struct_vect_sharp_1_1_colour.html#aa13c5ba1a5131ecaf5cae5c4504b728f">More...</a><br /></td></tr>
<tr class="separator:aa13c5ba1a5131ecaf5cae5c4504b728f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a101beca37dee249c59d615aac6943c89"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a101beca37dee249c59d615aac6943c89">WithAlpha</a> (<a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> original, byte alpha)</td></tr>
<tr class="memdesc:a101beca37dee249c59d615aac6943c89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> with the same RGB components as the <em>original</em>  <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>, but with the specified <em>alpha</em> .   <a href="struct_vect_sharp_1_1_colour.html#a101beca37dee249c59d615aac6943c89">More...</a><br /></td></tr>
<tr class="separator:a101beca37dee249c59d615aac6943c89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06906799e8fdb654fed1db65dc8ea716"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a06906799e8fdb654fed1db65dc8ea716">FromXYZ</a> (double x, double y, double z)</td></tr>
<tr class="memdesc:a06906799e8fdb654fed1db65dc8ea716"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> from CIE XYZ coordinates.   <a href="struct_vect_sharp_1_1_colour.html#a06906799e8fdb654fed1db65dc8ea716">More...</a><br /></td></tr>
<tr class="separator:a06906799e8fdb654fed1db65dc8ea716"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62b14ab9030bbf551742b2a57c2802c3"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a62b14ab9030bbf551742b2a57c2802c3">FromLab</a> (double <a class="el" href="struct_vect_sharp_1_1_colour.html#a082c62de97d68e4e9c39c174b1a8b115">L</a>, double a, double b)</td></tr>
<tr class="memdesc:a62b14ab9030bbf551742b2a57c2802c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> from CIE Lab coordinates (under Illuminant D65).   <a href="struct_vect_sharp_1_1_colour.html#a62b14ab9030bbf551742b2a57c2802c3">More...</a><br /></td></tr>
<tr class="separator:a62b14ab9030bbf551742b2a57c2802c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ab093740db80d3af9d4c925170cdad5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a1ab093740db80d3af9d4c925170cdad5">FromHSL</a> (double h, double s, double l)</td></tr>
<tr class="memdesc:a1ab093740db80d3af9d4c925170cdad5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> from HSL coordinates.   <a href="struct_vect_sharp_1_1_colour.html#a1ab093740db80d3af9d4c925170cdad5">More...</a><br /></td></tr>
<tr class="separator:a1ab093740db80d3af9d4c925170cdad5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a4477a64d804a1624ec1fa27773be1885"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a4477a64d804a1624ec1fa27773be1885">R</a></td></tr>
<tr class="memdesc:a4477a64d804a1624ec1fa27773be1885"><td class="mdescLeft">&#160;</td><td class="mdescRight">Red component of the colour. Range: [0, 1].   <a href="struct_vect_sharp_1_1_colour.html#a4477a64d804a1624ec1fa27773be1885">More...</a><br /></td></tr>
<tr class="separator:a4477a64d804a1624ec1fa27773be1885"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3312c38e132d1ed0eaf1177dcfb29af"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#ad3312c38e132d1ed0eaf1177dcfb29af">G</a></td></tr>
<tr class="memdesc:ad3312c38e132d1ed0eaf1177dcfb29af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Green component of the colour. Range: [0, 1].   <a href="struct_vect_sharp_1_1_colour.html#ad3312c38e132d1ed0eaf1177dcfb29af">More...</a><br /></td></tr>
<tr class="separator:ad3312c38e132d1ed0eaf1177dcfb29af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8fa726997f5d224f447571818fd9054"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#af8fa726997f5d224f447571818fd9054">B</a></td></tr>
<tr class="memdesc:af8fa726997f5d224f447571818fd9054"><td class="mdescLeft">&#160;</td><td class="mdescRight">Blue component of the colour. Range: [0, 1].   <a href="struct_vect_sharp_1_1_colour.html#af8fa726997f5d224f447571818fd9054">More...</a><br /></td></tr>
<tr class="separator:af8fa726997f5d224f447571818fd9054"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a782d99b814c42de20e4ab90422752788"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a782d99b814c42de20e4ab90422752788">A</a></td></tr>
<tr class="memdesc:a782d99b814c42de20e4ab90422752788"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alpha component of the colour. Range: [0, 1].   <a href="struct_vect_sharp_1_1_colour.html#a782d99b814c42de20e4ab90422752788">More...</a><br /></td></tr>
<tr class="separator:a782d99b814c42de20e4ab90422752788"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ed47990a818398b78ad058114fb6ee3"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a5ed47990a818398b78ad058114fb6ee3">X</a></td></tr>
<tr class="memdesc:a5ed47990a818398b78ad058114fb6ee3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> to the CIE XYZ colour space.   <a href="struct_vect_sharp_1_1_colour.html#a5ed47990a818398b78ad058114fb6ee3">More...</a><br /></td></tr>
<tr class="separator:a5ed47990a818398b78ad058114fb6ee3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7af0ce54d9c8ef45378f297e715e23c"><td class="memItemLeft" align="right" valign="top">double double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#ae7af0ce54d9c8ef45378f297e715e23c">Y</a></td></tr>
<tr class="separator:ae7af0ce54d9c8ef45378f297e715e23c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a082c62de97d68e4e9c39c174b1a8b115"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a082c62de97d68e4e9c39c174b1a8b115">L</a></td></tr>
<tr class="memdesc:a082c62de97d68e4e9c39c174b1a8b115"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> to the CIE Lab colour space (under Illuminant D65).   <a href="struct_vect_sharp_1_1_colour.html#a082c62de97d68e4e9c39c174b1a8b115">More...</a><br /></td></tr>
<tr class="separator:a082c62de97d68e4e9c39c174b1a8b115"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f001c4dc10e6dc58d9517e44f04aa7e"><td class="memItemLeft" align="right" valign="top">double double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a9f001c4dc10e6dc58d9517e44f04aa7e">a</a></td></tr>
<tr class="separator:a9f001c4dc10e6dc58d9517e44f04aa7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68497c53ff0fead819d2c166f186866e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#a68497c53ff0fead819d2c166f186866e">H</a></td></tr>
<tr class="memdesc:a68497c53ff0fead819d2c166f186866e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> to the HSL colour space.   <a href="struct_vect_sharp_1_1_colour.html#a68497c53ff0fead819d2c166f186866e">More...</a><br /></td></tr>
<tr class="separator:a68497c53ff0fead819d2c166f186866e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeaf4e38fa77a8b316cccea23c2bb9e0f"><td class="memItemLeft" align="right" valign="top">double double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_colour.html#aeaf4e38fa77a8b316cccea23c2bb9e0f">S</a></td></tr>
<tr class="separator:aeaf4e38fa77a8b316cccea23c2bb9e0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents an RGB colour.  </p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00028">28</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ab1748b8f2f362494aa2175efa15f886a" name="ab1748b8f2f362494aa2175efa15f886a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1748b8f2f362494aa2175efa15f886a">&#9670;&#160;</a></span>Equals() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool VectSharp.Colour.Equals </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>col</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00182">182</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a114451c549f2636cb93a20aaa0519d8a" name="a114451c549f2636cb93a20aaa0519d8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a114451c549f2636cb93a20aaa0519d8a">&#9670;&#160;</a></span>Equals() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">override bool VectSharp.Colour.Equals </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00169">169</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a4c316cac2ed75e622e2f86c608cc8abe" name="a4c316cac2ed75e622e2f86c608cc8abe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c316cac2ed75e622e2f86c608cc8abe">&#9670;&#160;</a></span>FromCSSString()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static ? <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromCSSString </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>cssString</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert a CSS colour string into a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> object.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">cssString</td><td>The CSS colour string. In addition to 148 standard colour names (case-insensitive), #RGB, #RGBA, #RRGGBB and #RRGGBBAA hex strings and rgb(r, g, b) and rgba(r, g, b, a) functional colour notations are supported.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00228">228</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a1ab093740db80d3af9d4c925170cdad5" name="a1ab093740db80d3af9d4c925170cdad5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ab093740db80d3af9d4c925170cdad5">&#9670;&#160;</a></span>FromHSL()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromHSL </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>l</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> from HSL coordinates.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td>The H component. Should be in range [0, 1].</td></tr>
    <tr><td class="paramname">s</td><td>The S component. Should be in range [0, 1].</td></tr>
    <tr><td class="paramname">l</td><td>The L component. Should be in range [0, 1].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> created from the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00587">587</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a62b14ab9030bbf551742b2a57c2802c3" name="a62b14ab9030bbf551742b2a57c2802c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62b14ab9030bbf551742b2a57c2802c3">&#9670;&#160;</a></span>FromLab()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromLab </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>L</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> from CIE Lab coordinates (under Illuminant D65).  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">L</td><td>The L* component.</td></tr>
    <tr><td class="paramname">a</td><td>The a* component.</td></tr>
    <tr><td class="paramname">b</td><td>The b* component.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An sRGB <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> created from the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00509">509</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a611fe30e3066c79106d7b7aeaec38f57" name="a611fe30e3066c79106d7b7aeaec38f57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a611fe30e3066c79106d7b7aeaec38f57">&#9670;&#160;</a></span>FromRgb() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgb </td>
          <td>(</td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGB (red, green and blue) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The red component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">g</td><td>The green component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">b</td><td>The blue component of the colour. Range: [0, 255].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components and an alpha component of 1.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00077">77</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a80787f39829f01b38291bb429214d6ae" name="a80787f39829f01b38291bb429214d6ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80787f39829f01b38291bb429214d6ae">&#9670;&#160;</a></span>FromRgb() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgb </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGB (red, green and blue) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The red component of the colour. Range: [0, 1].</td></tr>
    <tr><td class="paramname">g</td><td>The green component of the colour. Range: [0, 1].</td></tr>
    <tr><td class="paramname">b</td><td>The blue component of the colour. Range: [0, 1].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components and an alpha component of 1.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00065">65</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a976b67231d8f9fa1e8636d27f7d840c3" name="a976b67231d8f9fa1e8636d27f7d840c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a976b67231d8f9fa1e8636d27f7d840c3">&#9670;&#160;</a></span>FromRgb() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgb </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGB (red, green and blue) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The red component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">g</td><td>The green component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">b</td><td>The blue component of the colour. Range: [0, 255].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components and an alpha component of 1.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00089">89</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a2588faa7d3c92467f715db1fff82e214" name="a2588faa7d3c92467f715db1fff82e214"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2588faa7d3c92467f715db1fff82e214">&#9670;&#160;</a></span>FromRgba() <span class="overload">[1/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgba </td>
          <td>(</td>
          <td class="paramtype">(int r, int g, int b, double a)&#160;</td>
          <td class="paramname"><em>colour</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGBA (red, green, blue and alpha) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">colour</td><td>A ValueTuple&lt;Int32, Int32, Int32, Double&gt; containing component information for the colour. For r, g, and b, range: [0, 255]; for a, range: [0, 1].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00163">163</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="abbc0931103077c92cd2e08d3fbe4806b" name="abbc0931103077c92cd2e08d3fbe4806b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbc0931103077c92cd2e08d3fbe4806b">&#9670;&#160;</a></span>FromRgba() <span class="overload">[2/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgba </td>
          <td>(</td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGBA (red, green, blue and alpha) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The red component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">g</td><td>The green component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">b</td><td>The blue component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">a</td><td>The alpha component of the colour. Range: [0, 255].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a><a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00115">115</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a3d890c9efeae548a18e00ae396f7789c" name="a3d890c9efeae548a18e00ae396f7789c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d890c9efeae548a18e00ae396f7789c">&#9670;&#160;</a></span>FromRgba() <span class="overload">[3/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgba </td>
          <td>(</td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGBA (red, green, blue and alpha) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The red component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">g</td><td>The green component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">b</td><td>The blue component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">a</td><td>The alpha component of the colour. Range: [0, 1].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00128">128</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="ae8dc3a457be395b0350db3508424a324" name="ae8dc3a457be395b0350db3508424a324"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8dc3a457be395b0350db3508424a324">&#9670;&#160;</a></span>FromRgba() <span class="overload">[4/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgba </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGBA (red, green, blue and alpha) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The red component of the colour. Range: [0, 1].</td></tr>
    <tr><td class="paramname">g</td><td>The green component of the colour. Range: [0, 1].</td></tr>
    <tr><td class="paramname">b</td><td>The blue component of the colour. Range: [0, 1].</td></tr>
    <tr><td class="paramname">a</td><td>The alpha component of the colour. Range: [0, 1].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00102">102</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a5ae01d2810757c45611de9c02d11d359" name="a5ae01d2810757c45611de9c02d11d359"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ae01d2810757c45611de9c02d11d359">&#9670;&#160;</a></span>FromRgba() <span class="overload">[5/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgba </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGBA (red, green, blue and alpha) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The red component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">g</td><td>The green component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">b</td><td>The blue component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">a</td><td>The alpha component of the colour. Range: [0, 1].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00153">153</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a781c5f8f24851eb327b75b0c17a2a959" name="a781c5f8f24851eb327b75b0c17a2a959"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a781c5f8f24851eb327b75b0c17a2a959">&#9670;&#160;</a></span>FromRgba() <span class="overload">[6/6]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromRgba </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new colour from RGBA (red, green, blue and alpha) values.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>The red component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">g</td><td>The green component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">b</td><td>The blue component of the colour. Range: [0, 255].</td></tr>
    <tr><td class="paramname">a</td><td>The alpha component of the colour. Range: [0, 255].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00140">140</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a06906799e8fdb654fed1db65dc8ea716" name="a06906799e8fdb654fed1db65dc8ea716"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06906799e8fdb654fed1db65dc8ea716">&#9670;&#160;</a></span>FromXYZ()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.FromXYZ </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>z</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> from CIE XYZ coordinates.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>The X coordinate.</td></tr>
    <tr><td class="paramname">y</td><td>The Y coordinate.</td></tr>
    <tr><td class="paramname">z</td><td>The Z coordinate.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An sRGB <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> created from the specified components.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00427">427</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a54a2e4dac2e76d24394fe9d40117fae9" name="a54a2e4dac2e76d24394fe9d40117fae9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54a2e4dac2e76d24394fe9d40117fae9">&#9670;&#160;</a></span>GetHashCode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">override int VectSharp.Colour.GetHashCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00200">200</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a0e7aca2b6d5ca6a18ec9090b2ea54e63" name="a0e7aca2b6d5ca6a18ec9090b2ea54e63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e7aca2b6d5ca6a18ec9090b2ea54e63">&#9670;&#160;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool VectSharp.Colour.operator!= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>col1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>col2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00194">194</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="ab7f6945a159dbb984e9fb1148c6db532" name="ab7f6945a159dbb984e9fb1148c6db532"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7f6945a159dbb984e9fb1148c6db532">&#9670;&#160;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool VectSharp.Colour.operator== </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>col1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>col2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p></p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00188">188</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a2ac682d76a238254e3d750254820a9af" name="a2ac682d76a238254e3d750254820a9af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ac682d76a238254e3d750254820a9af">&#9670;&#160;</a></span>ToCSSString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string VectSharp.Colour.ToCSSString </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAlpha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert the <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> object into a hex string that is constituted by a "#" followed by two-digit hexadecimal representations of the red, green and blue components of the colour (in the range 0x00 - 0xFF). Optionally also includes opacity (alpha channel) data.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">includeAlpha</td><td>Whether two additional hex digits representing the colour's opacity (alpha channel) should be included in the string.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A hex colour string.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00211">211</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="aee3a20f7e437b6e8e5acc65f8cc04dd8" name="aee3a20f7e437b6e8e5acc65f8cc04dd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee3a20f7e437b6e8e5acc65f8cc04dd8">&#9670;&#160;</a></span>ToHSL()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double double double <a class="el" href="struct_vect_sharp_1_1_colour.html#a082c62de97d68e4e9c39c174b1a8b115">L</a> VectSharp.Colour.ToHSL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00540">540</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a4764d6a4992651f7e718ba61eda93d01" name="a4764d6a4992651f7e718ba61eda93d01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4764d6a4992651f7e718ba61eda93d01">&#9670;&#160;</a></span>ToLab()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double double double b VectSharp.Colour.ToLab </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00471">471</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a023d9996aac7d87cf6d88ad7ab6ffdba" name="a023d9996aac7d87cf6d88ad7ab6ffdba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a023d9996aac7d87cf6d88ad7ab6ffdba">&#9670;&#160;</a></span>ToXYZ()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double double double Z VectSharp.Colour.ToXYZ </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00382">382</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="ad2de8feb0735ee2b49cb79604f3c1e98" name="ad2de8feb0735ee2b49cb79604f3c1e98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2de8feb0735ee2b49cb79604f3c1e98">&#9670;&#160;</a></span>WithAlpha() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.WithAlpha </td>
          <td>(</td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>alpha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> with the same RGB components as the current <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>, but with the specified <em>alpha</em> .  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">alpha</td><td>The alpha component of the new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the same RGB components as the current <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> and the specified <em>alpha</em> .</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00373">373</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a101beca37dee249c59d615aac6943c89" name="a101beca37dee249c59d615aac6943c89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a101beca37dee249c59d615aac6943c89">&#9670;&#160;</a></span>WithAlpha() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.WithAlpha </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>original</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte&#160;</td>
          <td class="paramname"><em>alpha</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> with the same RGB components as the <em>original</em>  <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>, but with the specified <em>alpha</em> .  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>The original <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> from which the RGB components will be taken.</td></tr>
    <tr><td class="paramname">alpha</td><td>The alpha component of the new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the same RGB components as the <em>original</em>  <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> and the specified <em>alpha</em> .</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00351">351</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="aa13c5ba1a5131ecaf5cae5c4504b728f" name="aa13c5ba1a5131ecaf5cae5c4504b728f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa13c5ba1a5131ecaf5cae5c4504b728f">&#9670;&#160;</a></span>WithAlpha() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.WithAlpha </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a>&#160;</td>
          <td class="paramname"><em>original</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> with the same RGB components as the <em>original</em>  <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>, but with the specified <em>alpha</em> .  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>The original <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> from which the RGB components will be taken.</td></tr>
    <tr><td class="paramname">alpha</td><td>The alpha component of the new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the same RGB components as the <em>original</em>  <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> and the specified <em>alpha</em> .</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00340">340</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="afccab5755d0a369205b1af623b088495" name="afccab5755d0a369205b1af623b088495"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afccab5755d0a369205b1af623b088495">&#9670;&#160;</a></span>WithAlpha() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a> VectSharp.Colour.WithAlpha </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> with the same RGB components as the current <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>, but with the specified <em>alpha</em> .  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">alpha</td><td>The alpha component of the new <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> struct with the same RGB components as the current <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> and the specified <em>alpha</em> .</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00362">362</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a782d99b814c42de20e4ab90422752788" name="a782d99b814c42de20e4ab90422752788"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a782d99b814c42de20e4ab90422752788">&#9670;&#160;</a></span>A</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Colour.A</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Alpha component of the colour. Range: [0, 1].  </p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00048">48</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a9f001c4dc10e6dc58d9517e44f04aa7e" name="a9f001c4dc10e6dc58d9517e44f04aa7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f001c4dc10e6dc58d9517e44f04aa7e">&#9670;&#160;</a></span>a</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double double VectSharp.Colour.a</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00471">471</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="af8fa726997f5d224f447571818fd9054" name="af8fa726997f5d224f447571818fd9054"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8fa726997f5d224f447571818fd9054">&#9670;&#160;</a></span>B</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Colour.B</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Blue component of the colour. Range: [0, 1].  </p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00043">43</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="ad3312c38e132d1ed0eaf1177dcfb29af" name="ad3312c38e132d1ed0eaf1177dcfb29af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3312c38e132d1ed0eaf1177dcfb29af">&#9670;&#160;</a></span>G</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Colour.G</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Green component of the colour. Range: [0, 1].  </p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00038">38</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a68497c53ff0fead819d2c166f186866e" name="a68497c53ff0fead819d2c166f186866e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68497c53ff0fead819d2c166f186866e">&#9670;&#160;</a></span>H</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Colour.H</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> to the HSL colour space.  </p>
<dl class="section return"><dt>Returns</dt><dd>A ValueType containing the H, S and L components of the <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>. Each component has range [0, 1].</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00540">540</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a082c62de97d68e4e9c39c174b1a8b115" name="a082c62de97d68e4e9c39c174b1a8b115"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a082c62de97d68e4e9c39c174b1a8b115">&#9670;&#160;</a></span>L</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Colour.L</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> to the CIE Lab colour space (under Illuminant D65).  </p>
<dl class="section return"><dt>Returns</dt><dd>A ValueType containing the L*, a* and b* components of the <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00471">471</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a4477a64d804a1624ec1fa27773be1885" name="a4477a64d804a1624ec1fa27773be1885"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4477a64d804a1624ec1fa27773be1885">&#9670;&#160;</a></span>R</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Colour.R</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Red component of the colour. Range: [0, 1].  </p>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00033">33</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="aeaf4e38fa77a8b316cccea23c2bb9e0f" name="aeaf4e38fa77a8b316cccea23c2bb9e0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeaf4e38fa77a8b316cccea23c2bb9e0f">&#9670;&#160;</a></span>S</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double double VectSharp.Colour.S</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00540">540</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="a5ed47990a818398b78ad058114fb6ee3" name="a5ed47990a818398b78ad058114fb6ee3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ed47990a818398b78ad058114fb6ee3">&#9670;&#160;</a></span>X</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.Colour.X</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts a <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a> to the CIE XYZ colour space.  </p>
<dl class="section return"><dt>Returns</dt><dd>A ValueTuple containing the X, Y and Z components of the <a class="el" href="struct_vect_sharp_1_1_colour.html" title="Represents an RGB colour.">Colour</a>.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00382">382</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<a id="ae7af0ce54d9c8ef45378f297e715e23c" name="ae7af0ce54d9c8ef45378f297e715e23c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7af0ce54d9c8ef45378f297e715e23c">&#9670;&#160;</a></span>Y</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double double VectSharp.Colour.Y</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_colour_8cs_source.html#l00382">382</a> of file <a class="el" href="_colour_8cs_source.html">Colour.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>VectSharp/<a class="el" href="_colour_8cs_source.html">Colour.cs</a></li>
<li>VectSharp/<a class="el" href="_standard_colours_8cs_source.html">StandardColours.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="struct_vect_sharp_1_1_colour.html">Colour</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
